Skip to content

service: harden Collection FunctionImport handler from PR #298 review#300

Merged
filak-sap merged 2 commits into
masterfrom
review/fix-function-import-collection
Jun 19, 2026
Merged

service: harden Collection FunctionImport handler from PR #298 review#300
filak-sap merged 2 commits into
masterfrom
review/fix-function-import-collection

Conversation

@phanak-sap

Copy link
Copy Markdown
Contributor
  • Hoist entity_set lookup above EntityType/Collection branches to eliminate duplication
  • Guard against missing 'results' key with a descriptive PyODataException
  • Add tests: empty collection, missing results key, total_count absent (ProgramError)
  • Fix double blank line in test_function_import_collection_with_pagination_metadata

- Hoist entity_set lookup above EntityType/Collection branches to eliminate duplication
- Guard against missing 'results' key with a descriptive PyODataException
- Add tests: empty collection, missing results key, total_count absent (ProgramError)
- Fix double blank line in test_function_import_collection_with_pagination_metadata
@phanak-sap phanak-sap force-pushed the review/fix-function-import-collection branch from aabb1e3 to 90ab662 Compare June 19, 2026 13:46
All status-related logic (errors and unexpected-2xx warnings) is consolidated
into _handle_response_status, resolving the pylint R0912 violation.
@phanak-sap phanak-sap force-pushed the review/fix-function-import-collection branch from 90ab662 to be72b3b Compare June 19, 2026 13:47
@phanak-sap phanak-sap requested review from filak-sap and mnezerka June 19, 2026 13:55
@filak-sap

Copy link
Copy Markdown
Contributor

Thank you!

@filak-sap filak-sap merged commit 8670bf4 into master Jun 19, 2026
54 checks passed
@phanak-sap phanak-sap deleted the review/fix-function-import-collection branch June 19, 2026 17:58
@phanak-sap phanak-sap added this to the 1.12.0 milestone Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants